fix bug with storing the path of files if they are in /