Fixed bug when using absolute paths.