Removed all usages of java.io.File to get the relative paths (only using it for files).