Bugfix: should get relative path for files