Fix retrieving libraries from classpath when project is not under the workspace