check URL input and support ~ and relative paths in coursepath

closes #8 closes #9