ftpserver: Make sure we bail out on invalid paths