Be more cautious when dealing with absolute paths. Closes #2