[geany/geany] 0a22e8: Improve error handling in build_create_shellscript()