get_storage_path from absolute path function
leper NULL pointer handling