check abs path and join paths via os.path