add relative path functiion
Merge pull request #2 from maxogden/relative

add relative path functiion