Fixed #252: fixed the expand_path call for credentials command