fileparse(): need a valid pathname at ./script line xxx