Fixed loading files with relative and absolute path.