fixed issue 127 (relative paths) and added test
added test for fixed issue 44