Added script directory to filename before trying to open