fix lookup of autostart file based on launch path